package com.blensmile.entities;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by Blensmile on 2017/2/4.
 */

public class HumanBean implements Parcelable{
    private MediaTestBean mediaTestBean;

    private List<MediaTestBean> list;

    protected HumanBean(Parcel in) {
        mediaTestBean = in.readParcelable(MediaTestBean.class.getClassLoader());
        list = in.createTypedArrayList(MediaTestBean.CREATOR);
    }

    public static final Creator<HumanBean> CREATOR = new Creator<HumanBean>() {
        @Override
        public HumanBean createFromParcel(Parcel in) {
            return new HumanBean(in);
        }

        @Override
        public HumanBean[] newArray(int size) {
            return new HumanBean[size];
        }
    };

    public MediaTestBean getMediaTestBean() {
        return mediaTestBean;
    }

    public void setMediaTestBean(MediaTestBean mediaTestBean) {
        this.mediaTestBean = mediaTestBean;
    }

    public List<MediaTestBean> getList() {
        return list;
    }

    public void setList(List<MediaTestBean> list) {
        this.list = list;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeParcelable(mediaTestBean, flags);
        dest.writeTypedList(list);
    }
}
